{% extends "admin/change_form.html" %}
{% load staticfiles %}
{% block extrahead %}{{ block.super }}
    {% include 'services/admin_head.html' %}
    <script src="{% static 'admin/js/popup_fix.js' %}" type="text/javascript"></script>
    <script src="{% static 'admin/js/agreement_filter.js' %}" type="text/javascript"></script>
    <script type="text/javascript">
        const _CLIENT_ = "{{ client_id  }}";
        (function ($) {
            $(document).ready(function () {
                agreementFilter({client: _CLIENT_, url: "{% url 'admin:get_client_agreements' 0 %}"});
            });
        })(grp.jQuery);
    </script>
{% endblock %}
